function y = sinc(x)
% sinc(x)
% 	Parameters:
% 		x:	a sequence
% 
% 	Outputs:
% 		y:	a sequence
% 
% 	Purpose fo this code: This code will apply a given sinc function to the values of squence to return a
% 	new sequence.
y = zeros(size(x));
for j=1:length(x)
    if(x(j)==0) 
        y(j)=1;
    else
        y(j)=sin(pi*x(j))/(pi*x(j));
    end
end
